<template>
    <el-dialog title="提示" :visible.sync="dialogVisible" width="30%">
        <span>这是一段信息</span>
        <el-form :model="form">
            <el-form-item label="名称" :label-width="'120px'">
                <el-input v-model="form.name" placeholder="请输入名称"></el-input>
            </el-form-item>
        </el-form>
        <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="test">确 定</el-button>
        </span>
    </el-dialog>
</template>

<script>
export default {
    name: 'BallMasterTestDialog',

    data() {
        return {
            dialogVisible: true,
            form: {}

        };
    },

    mounted() {

    },

    methods: {
        test(){
            console.log(this.form);
            
        }
    },
};
</script>